From 5799b36feb07363a2b2025bfe561f2ed064e7160 Mon Sep 17 00:00:00 2001 From: "lynx@idefix.cl.cam.ac.uk" Date: Mon, 30 Dec 2002 10:30:45 +0000 Subject: [PATCH] bitkeeper revision 1.7.3.56 (3e102055egsZ-GzoHVKeMzZIzTKV7A) debug --- .../arch/xeno/drivers/dom0/dom0_memory.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c index 0e31d1463d..c9420eaa56 100644 --- a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c @@ -22,12 +22,6 @@ extern struct list_head * find_direct(struct list_head *, unsigned long); -/* now, this is grimm, kmalloc seems to have problems allocating small mem - * blocks, so i have decided to use fixed (a bit) larger blocks... this needs - * to be traced down but no time now. - */ -#define KMALLOC_SIZE 128 - /* bd240: functions below perform direct mapping to the real physical pages needed for * mapping various hypervisor specific structures needed in dom0 userspace by various * management applications such as domain builder etc. @@ -189,10 +183,10 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size, dmmap->vm_end = addr + size; entry = find_direct(¤t->mm->context.direct_list, addr); if(entry != ¤t->mm->context.direct_list){ - list_add(&dmmap->list, entry); + list_add_tail(&dmmap->list, entry); printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start); } else { - list_add(&dmmap->list, ¤t->mm->context.direct_list); + list_add_tail(&dmmap->list, ¤t->mm->context.direct_list); printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start); } -- 2.30.2